import java.util.Scanner;


public class CallatzTest {

  public static void main(String[] args) {
    int number = new Scanner(System.in).nextInt();
    System.out.print(callatzProcess(number));
  }

  private static int callatzProcess(int n) {
    int count = 0;
    while (n != 1) {
      n = n % 2 == 0 ? n / 2 : (3 * n + 1) / 2;
      count++;
    }
    return count;
  }

}
